import 'package:flutter_test/flutter_test.dart';
import 'package:im_app/im/pojo/ImPojo.dart';

void main() async {

  test("jsonEncode", () async {
    var collect = ImCollect(userId: 'zhugeliang', serverId: '80', messageId: '7971', sessionId: '108', messageType:
    ImMessageType.Text, content: '{"content": "2345235234","fromUserId": "zhugeliang","toUserId": "曹操","messageTime": "2024-09-18 10:03:31","messageType": "Text","messageId": "7971"}', status: ImCollectStatus.enable);
    var json = collect.getCollectContent().toString();
    print('json: $json');

  });
}